package name.matthewgreet.example2.common; import java.io.Serializable; import java.util.Collection; /** * <P>Strategy for lazy loading a page of records to display from their ids (or other unique key), typically found by a * paired {@link IdListFinder2} instance.</P> */ @FunctionalInterface public interface PageByIdsFinder<K extends Serializable,T extends Serializable> extends Serializable { /** * Returns items from their ids. If any records are missing, the successfully retrieved ones must still be * returned. No item should ever be null. */ public Collection<T> getItems(Collection<K> keys) throws Exception; }